/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.univaq.f4i.iw.ex.album.model.impl;

import it.univaq.f4i.iw.ex.album.model.Manager;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author juli
 */
public class ManagerMysqlImpl implements Manager {
    private Integer key;
    private MeetingDataLayerMysqlImpl datalayer;

    
    ManagerMysqlImpl(MeetingDataLayerMysqlImpl datalayer) {
        key = 0;
        this.datalayer = datalayer;
    }

    ManagerMysqlImpl(MeetingDataLayerMysqlImpl datalayer, ResultSet data) throws SQLException {
        this.datalayer = datalayer;
        key = data.getInt("ID");
    }
    
    public int getKey(){
        return key;
    }
    
    public void setKey(int key) {
        this.key = key;
    }
}
